package com.ftg.learn.day16.annotationbase;

import lombok.Data;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Autowired byType
 * @author 布衣
 */
@Component
@Scope("prototype")
@Data
public class Helicopter {

    @Resource
    @Qualifier("subFly1")
    private Fly fly1;


}
